<template>
	<view class="container">
		<view class="video-list">
			<view class="video-item" v-for="(item, index) in 8" :key="index" @click="goVideo">
				<view class="video-thumb">
					<image src="https://img0.baidu.com/it/u=431600568,1531948580&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500" mode="aspectFit" style="height: 100%;width: 100%;"></image>
				</view>
				<view class="video-content">
					<text>嵌入式系统设计师真题解析</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goVideo(){
				uni.navigateTo({
					url: './videoPage/videoPage'
				})
			}
		}
	}
</script>
<style>
	page {
		background-color: #f8f8f8;
	}
</style>
<style lang="scss" scoped>
	.container{
		padding: 30rpx;
	}
	
	.video-list{
		columns: 2; // 默认列数
		column-gap: 22rpx; // 列间距
		.video-item{
			width: 100%;
			break-inside: avoid;
			background-color: #fff;
			border-radius: 12rpx;
			box-sizing: border-box;
			margin-bottom: 22rpx;
			overflow: hidden;
			.video-thumb{
				height: 300rpx;
				image{
					height: 300rpx;
					background-color: #79bbff;
				}
			}
			.video-content{
				padding: 22rpx;
				font-size: 26rpx;
			}
		}
	}
</style>
